#include "e2d/yml/physics/Serializer.h"

using Serializer = e2d::BasicSerializer;

template<>
 void Serializer::Encode<e2d::RigidbodyStatic>(YAML::Node& node, const e2d::RigidbodyStatic& inst)
{
	Encode<e2d::Object>(node, inst);

	SetVariable<float>(node, "m_Mass",inst.m_Mass);
	SetVariable<e2d::PxShapeMap>(node, "m_PxShapeMaps", inst.m_PxShapeMaps);

}


template<>
 bool Serializer::Decode<e2d::RigidbodyStatic>(const YAML::Node& node, e2d::RigidbodyStatic& inst)
{
	Decode<e2d::Object>(node, inst);
	GetVariable<float>(node, "m_Mass", inst.m_Mass);
	GetVariable<e2d::PxShapeMap>(node, "m_PxShapeMaps", inst.m_PxShapeMaps);

	return true;
}
